import { HttpPost, HttpGet } from '@/api/index.js'

/**
 * 新增
 * @param data
 */
export const add = (data) => {
    return HttpPost('/admin/erp/warehouse/add', data)
}

/**
 * 更新
 * @param data
 */
export const edit = (data) => {
    return HttpPost('/admin/erp/warehouse/update', data)
}

/**
 * 分页列表
 * @param search
 */
export const pageList = (search) => {
    return HttpGet('/admin/erp/warehouse/pageList', search)
}

/**
 * 根据ID删除
 * @param id
 */
export const deleteById = (id) => {
    return HttpPost('/admin/erp/warehouse/deleteById/' + id)
}
